import json

"""400状态码"""
mock_api_status_400 = {
    "url": 'https://so2.4399.com/search/search.php?k=**',
    'handler': lambda route: route.fulfill(
        status=400,
        body=json.dumps({
            "errors": {
                "project_name": "查询失败"
            },
            'message': "please input again"
        })
    )
}

mock_api_status_500 = {
    "url": 'https://so2.4399.com/search/search.php?k=**',
    'handler': lambda route: route.fulfill(
        status=500,
        body="500 error!"
    )
}